//
//  XMVideoLevelModel.h
//  XunMi
//
//  Created by MacBook on 2024/5/8.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XMVideoLevelRules : NSObject
///视频等级标识信息
@property (nonatomic, strong) NSString *level;
///视频等级时长区间
@property (nonatomic, copy) NSString *range;
///视频等级消耗金币
@property (nonatomic, copy) NSString *price;

@end

@interface XMVideoLevelTable : NSObject

//"index": 1, //视频等级操作标识
//"level": "LV1", //视频等级标识信息
//"price": "50金币/分钟", //视频等级所需金币
//"label": "视频等级达LV.1可选", //视频等级备注信息
//"state": 2 //视频等级操作状态  0 禁止操作  1 可以操作  2 已经选中

@property (nonatomic, strong) NSNumber *index;
@property (nonatomic, copy) NSString *level;
@property (nonatomic, copy) NSString *price;
@property (nonatomic, copy) NSString *label;
@property (nonatomic, assign) NSInteger state;

@end

@interface XMVideoLevelModel : NSObject

//"title": "视频等级规则说明", //视频等级标题
//"prove": "111", //视频等级说明
//"alert": "222", //视频降级说明
//"thisWeekDuration": 0, //用户本周视频时长（分）
//"lastWeekDuration": 0, //用户上周视频时长（分）
//"thisWeekLevel": 1, //用户本周视频等级
//"lastWeekLevel": 1, //用户上周视频等级

@property (nonatomic, strong) NSNumber *thisWeekDuration;
@property (nonatomic, strong) NSNumber *lastWeekDuration;
@property (nonatomic, strong) NSNumber *thisWeekLevel;
@property (nonatomic, strong) NSNumber *lastWeekLevel;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *prove;
@property (nonatomic, copy) NSString *alert;

@property (nonatomic, strong) NSMutableArray <XMVideoLevelRules *> *rules;
@property (nonatomic, strong) NSMutableArray <XMVideoLevelTable *> *table;

@end

NS_ASSUME_NONNULL_END
